import { createApp } from 'vue'
import App from './App.vue'
import install from './install'
import './permission'
import './styles/index.scss'
import 'virtual:svg-icons-register'

import useLangStore from '@/stores/modules/lang'

async function init() { 
    const app = createApp(App)
    app.use(install)
    
    // 加载远程语言配置
    const langStore = useLangStore()
    await langStore.getLangConfig()

    app.mount('#app')
}

init()